<template>
  <div>
    <div class="box">
      <span>头部</span>
      <slot name="header"></slot>
    </div>
    <div class="box">
      <span>内容</span>
      <slot></slot>
    </div>
    <div class="box">
      <span>尾部</span>
      <slot name="floot"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "MyCmp",
};
</script>

<style scoped>
.box {
  padding: 20px;
  width: 60%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  margin: 20px 20px;
}
</style>